







<div class="x-body">
    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so">
            <input type="text" name="search_data"  placeholder="名称|心语|人生履历" autocomplete="off" value="{:input('search_data')}"  class="layui-input">
            <div class="layui-input-inline">
                <select name="tags">
                    <option value="" >全部标签</option>
                    {volist name='tags' id='vo'}
                    <option value="{$vo['id']}" {notempty name="param['tags']"}{if condition="$param['tags'] eq $vo['id']"} selected="selected" {/if}{/notempty} >{$vo['name']}</option>
                    {/volist}
                </select>
            </div>
            <button class="layui-btn"  id="search"  url="{:url('kinglist')}"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
        </form>
    </div>
    <xblock>
        <!--<button class="layui-btn layui-btn-danger" onclick="delAll()"><i class="layui-icon"></i>批量删除</button>-->
        <span class="x-right" style="line-height:40px">共有数据：{$list.count} 条</span>
    </xblock>
    <table class="layui-table x-admin">
        <thead>
        <tr>

            <th>序号</th>

            <th>基础信息</th>
            <th>赌王信息</th>

            <th>申请信息</th>
            <th>操作</th>
        </thead>
        {notempty name='list.list'}
        <tbody>
        {volist name='list.list' id='vo' key="k"}
        <tr>

            <td>{$k}</td>
            <td>
                <div><label>会员id:</label><span>{$vo.user_id}</span></div>
                <div>  <label>会员账号:</label><span>{$vo.user.username}</span></div>
                <div>  <label>手机号码:</label><span>{$vo.user.mobile}</span></div>


            </td>
            <td>
                <div><label>赌王名称:</label><span>{$vo.name}</span></div>
                <div>  <label>赌王强项:</label><span>{$vo.tags_name}</span></div>
                <div>  <label>赌王心语:</label><span>{$vo.describe}</span></div>
                <div>  <label>赌王履历:</label><span>{$vo.content}</span></div>

            </td>
            <td>
                <div><label>申请提交时间:</label><span>{$vo.create_time|date='Y-m-d H:i:s',###}</span></div>
                <div>  <label>状态:</label><span>{if condition="$vo['is_update'] eq 1"}编辑{else/}首次申请{/if}</span></div>


            </td>

            <td class="td-manage">

                <ob_link><a title="通过" class="ajax-get"  href="{:url('update_info', array('id' => $vo['id'], 'state' => 2))}" ><span class='badge layui-btn'>通过</span>

                </a></ob_link>
                <ob_link> <a title="不通过" class="ajax-get"  href="{:url('update_info', array('id' => $vo['id'], 'state' => 3))}" ><span class='badge layui-btn layui-btn-danger'>驳回</span>

            </td>
        </tr>
        {/volist}
        {else/}
        <tbody><tr class="odd"><td colspan="12" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
        {/notempty}

        </tbody>
    </table>
    <div class="page">
        {notempty name='list'}   {$list.list->render()}{/notempty}
    </div>

</div>
<script>
    layui.use('form', function(){
        form = layui.form;

    });
    function delAll (argument) {

        var data = tableCheck.getData();


        layer.confirm('确认要删除吗？',function(index){
            //捉到所有被选中的，发异步进行删除
            //监听提交
            var url="{:url('setStatus')}";
            $.post(url,{ids:data,status:-1},function (d) {
                if(d.code==1){
                    $(".layui-form-checked").not('.header').parents('tr').remove();
                    layer.msg('删除成功', {icon: 1});

                }else{
                    layer.msg(d.msg);

                }
            },'json');



        });
    }
</script>

</body>

</html>


